package main

import (
	"fmt"
	"gitee.com/yunduansing/gocommon/configs"
	"gitee.com/yunduansing/iristest/application"
	"github.com/kataras/iris/v12"
)

func main()  {
	conf:=configs.GetYAMLConfig("./config.yml")
	app:= application.Startup()
	application.RegisterAllRouters(app) //注册路由

	//application.RegisterService()
	err:=app.Run(iris.Addr(":8881"),conf)
	if err!=nil{
		fmt.Println("Started web service failed.")
	}

	fmt.Println("Started web service successful.")
}
